﻿<%@  Page  Language="C#"  MasterPageFile="~/adm-Master.Master"  AutoEventWireup="true"  CodeBehind="Catogory.aspx.cs"  Inherits="BookStore.admin.Catogory"  Title="Untitled Page"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">Catogory Manager</div>
    
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" onclick="lbtAddT_Click" 
                >Add new</asp:LinkButton>
        </li>
        <li> 
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" 
                >Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
    <asp:GridView ID="gvCatogory" runat="server" AllowPaging="True" BorderWidth="1px" 
        PageSize="5" Width="100%" AutoGenerateColumns="False" 
        onrowdeleting="gvCatogory_RowDeleting" 
        onselectedindexchanging="gvCatogory_SelectedIndexChanging" 
        onpageindexchanging="gvCatogory_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="catogoryID" HeaderText="CatogoryID" />
            <asp:BoundField DataField="catogryName" HeaderText="Catogry Name" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>

            <asp:LinkButton CssClass="vadd" ID="lbtAdd" runat="server" 
                OnClick="lbtAddT_Click">Add new</asp:LinkButton>

        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" 
                        onclick="lbtUpdate_Click">Save</asp:LinkButton>
                </li> 
                <li> 
                    <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
       <th> 
            &nbsp;</th>
       <td>
            <asp:TextBox ID="txtCatogoryID" runat="server" Visible="False"></asp:TextBox>
       </td>
     </tr>
    <tr> 
    <th> 
       <asp:Label ID="lblCatogoryname" runat="server" Text="Catogory Name :"></asp:Label>
    </th>
    <td>
       <asp:TextBox ID="txtCatogoryname" runat="server" CssClass="Text"></asp:TextBox>
        
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtCatogoryname" ErrorMessage="name not blank"></asp:RequiredFieldValidator>
    </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="lbtUpdate" runat="server" onclick="lbtUpdate_Click" 
                         >Save</asp:LinkButton></li> <li> 
                 <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
</asp:Content>
